package com.lu.statistics.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.statistics.entity.SysAppUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysAppUserMapper extends BaseMapper<SysAppUser> {

    SysAppUser getUserByUserName(@Param("username") String username, @Param("password") String password);

    SysAppUser getUserByPhone(@Param("telephone") String telephone);

    int getUserCountByPhone(@Param("telephone") String telephone);

    int updatePasswordByPhone(@Param("password") String password, @Param("telephone") String telephone);
}
